package com.ymttest.database.mapping;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface UserDeviceAuthMapper {
	List<HashMap> selectDeviceAuthByUserIdAndDeviceId(Map m);
	
	List<HashMap> selectIPAuthByUserIdAndDeviceId(Map m);
	
	List<HashMap> getDeviceAuth(Map m);
	
	List<HashMap> getLoginSafeConfiguration(Map m);
	
	/**
	 * @param m ip loginsuccess
	 * @return loginipcountinfo 
	 */
	List<HashMap> selectLoginipcountinfoByIp(Map m);
	/**
	 * @param m ip loginsuccess
	 * @return loginipcountinfo_seller
	 */
	List<HashMap> selectLoginipcountinfoSellerByIp(Map m);
	void deleteByIPAreaAndUserId(Map m);
	
	void deleteDeviceData(Map m);
	
	void updateTokenUpdateTime(Map m);
	
	void updateDeviceTokenUpdateTime(Map m);
	
	void insertDataToUserDeviceAuth(Map m);
	
	void insertUserIpAuth(Map m);
	
	void insertDeviceTokenAuthHistory(Map m);
	
	void insertIPTokenAuthHistory(Map m);
	
	void updateDeviceAuthStatus(Map m);
	
	void updateIpAuthStatus(Map m);
	
	void updateNewLoginSafeConfiguration(Map m);
	
	List<HashMap> selectloginipusercounter(Map m);
	
	void deleteloginipusercounter(Map m);
}
